package com.itheima.advantagesup.service;

import com.itheima.advantagesup.common.PageBean;
import com.itheima.advantagesup.dto.AddArticleDTO;
import com.itheima.advantagesup.dto.ArticlePageDTO;
import com.itheima.advantagesup.entity.YddArticle;
import com.itheima.advantagesup.vo.AddArticleVO;
import com.itheima.advantagesup.vo.YddArticleAddVO;
import com.itheima.advantagesup.vo.YddArticleUpdateVO;

/**
 * @author Du leilei
 */
public interface YddArticleService {
    /**
     * 文章分页查询
     * @param articlePageDTO
     * @return
     */
    AddArticleVO pageQuery(ArticlePageDTO articlePageDTO);

    YddArticleAddVO add(AddArticleDTO addArticleDTO);

    void delArticle(Integer id);

    YddArticle queryArticle(Integer id);

    YddArticleUpdateVO updateArticle(YddArticle yddArticle);

}
